package com.chenyuhan.myview.testview.activity;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;

import com.chenyuhan.myview.R;
import com.chenyuhan.myview.testview.TestTextView;

public class TestViewActivity extends AppCompatActivity {
    private final String TAG = TestViewActivity.class.getSimpleName();
    private TestTextView testTextView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        testTextView = (TestTextView) findViewById(R.id.testviewone);
        findViewById(R.id.textview).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent(TestViewActivity.this, SecondActivity.class);
                startActivity(intent);
            }
        });
        findViewById(R.id.third_activity_btn).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent(TestViewActivity.this, ThirdActivity.class);
                startActivity(intent);
            }
        });
    }
}
